<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
        <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <title>后台管理</title>
    </head>

    <body class="body_ifm">
        {yun:}include file="$adminstyle/member_send_email.htm"{/yun}
        <div id="infobox2" style="display:none; width: 380px; ">
            <form class="layui-form" action="index.php?m=train_member&c=status" target="supportiframe" method="post" onsubmit="return htStatus()">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                    <tr>
                        <th width="80">审核操作：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <div class="admin_examine_right" style="width:300px;">
                                        <input name="status" id="status1" value="1" title="已审核" type="radio" />
                                        <input name="status" id="status3" value="3" title="未通过" type="radio" />
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th>审核说明：</th>
                        <td align="left"><textarea id="statusbody" name="statusbody" class="admin_explain_textarea"></textarea></td>
                    </tr>
                    <tr>
                        <td colspan='2' align="center">
							<input type="submit" value='确认' class="layui-btn layui-btn-normal">
                            <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
						</td>
                    </tr>
                </table>
                <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                <input name="uid"  value="0" type="hidden">
            </form>
        </div>

        <div id="trainrenemail" style="display:none; width: 380px; ">
          <div class="jap_honda">
            <form class="layui-form" action="index.php?m=train_member&c=emailstatus" target="supportiframe" method="post">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                    <tr>
                        <th width="80">邮箱：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <div class="admin_examine_right" style="width:300px;">
                                        <input  type="text" class="input-text" id="trainemailemail" name="trainemailemail"  value="">
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th width="80">认证操作：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <div class="admin_examine_right" style="width:300px;">
                                        <input name="estatus" id="trainestatus0" value="0" title="待认证" type="radio" />
                                        <input name="estatus" id="trainestatus1" value="1" title="已认证" type="radio" />
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
      
                    <tr>
                        <td colspan='2' align="center">
							<input type="submit" onclick="loadlayer();" value='确认' class="layui-btn layui-btn-normal">
                            <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
						</td>
                    </tr>
                </table>
                <input type="hidden" name="pytoken"   value="{yun:}$pytoken{/yun}">
                <input name="uid" id="trainemailuid"   value="0" type="hidden">
            </form>
          </div>
        </div>

        <div id="trainrenmoblie" style="display:none; width: 380px; ">
           <div class="jap_honda">
            <form class="layui-form" action="index.php?m=train_member&c=mobliestatus" target="supportiframe" method="post" id="formstatus">
                <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                    <tr>
                        <th width="80">手机号码：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <div class="admin_examine_right" style="width:300px;">
                                        <input  type="text" class="input-text" id="trainmobliemoblie" name="trainmobliemoblie" value=""> 
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th width="80">认证操作：</th>
                        <td align="left">
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <div class="admin_examine_right" style="width:300px;">
                                        <input name="mstatus" id="trainpstatus0" value="0" title="待认证" type="radio" />
                                        <input name="mstatus" id="trainpstatus1" value="1" title="已认证" type="radio" />
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
      
                    <tr>
                        <td colspan='2' align="center">
							<input type="submit" onclick="loadlayer();" value='确认' class="layui-btn layui-btn-normal">
                            <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
						</td>
                    </tr>
                </table>
                <input type="hidden" name="pytoken"   value="{yun:}$pytoken{/yun}">
                <input name="uid" id="trainmoblieuid"   value="0" type="hidden">
            </form>
           </div>
        </div>

        	  <!-------批量认证---->
		 <div id="batchrezhen" style="display:none;width:360px ">
				<div style="overflow:auto;width:360px;">
					<form class="layui-form" action="index.php?m=train_member&c=batchfirm" target="supportiframe" method="post" id="formstatus">
						<table cellspacing='1' cellpadding='1' class="admin_examine_table">
							<tr>
								<th width="80">认证类型：</th>
								<td align="left">
									<div class="layui-form-item">
										<div class="layui-input-block">
												<input name="trainname_email"    title="邮箱"         type="checkbox"   lay-skin="primary"/>
												<input name="trainname_moblie"   title="手机"         type="checkbox"   lay-skin="primary"/>
												<input name="trainname_yyzz"     title="营业执照"     type="checkbox"   lay-skin="primary"/>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<th width="80">认证操作：</th>
								<td align="left">
									<div class="layui-form-item">
										<div class="layui-input-block">
											<input name="plstatus" id="batchstatis0" value="0" title="待认证" type="radio" />
											<input name="plstatus" id="batchstatis1" value="1" title="已认证" type="radio" />
										</div>
									</div>
								</td>
							</tr>
		 
							<tr>
								<td colspan='2' align="center">
									<div class="admin_Operating_sub">
										<input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
										<input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'></div>
								</td>
							</tr>
						</table>
						<input name="uid" id="btachuid" value="0" type="hidden">
						<input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
					</form>
				</div>
			</div>

        <div id="preview" style="display:none;width:420px ">
			<div style="height:300px; overflow:auto;width:420px;">
				<form class="layui-form" action="index.php?m=train_member&c=trainstatus" target="supportiframe" method="post" onsubmit="return tcdiv()">
					<input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
					<table cellspacing='1' cellpadding='1' class="admin_examine_table">
						<tr>
							<th>认证图片：</th>
							<td align="left">
								<div class="job_box_div" style="float:left;border:1px solid #eee;"></div>
								<a target="_blank" href="" id='preview_url' style="line-height:70px; padding-left:10px;">查看原图</a>
								<div id="zwyyzz" style="line-height:70px; padding-left:10px;display: none">暂无营业执照</div>
							</td>
						</tr>
						<tr>
							<th width="80">审核操作：</th>
							<td align="left">
								<div class="layui-form-item">
									<div class="layui-input-block">
										<div class="admin_examine_right" style="width:300px;">
											<input name="r_status" id="trainstatus0" value="0" title="待认证" type="radio" />
											<input name="r_status" id="trainstatus1" value="1" title="已认证" type="radio" />
										</div>
									</div>
								</div>

							</td>
						</tr>
						<tr>
							<th>审核说明：</th>
							<td align="left"> <textarea id="traincontent" name="statusbody" class="admin_explain_textarea"></textarea></td>
						</tr>
						<tr>
							<td colspan='2' align="center">
								<div class="admin_Operating_sub">
									<input type="submit" value='确认' class="layui-btn layui-btn-normal">
									<input type="button" onClick="layer.closeAll();" class="layui-btn layui-btn-normal" value='取消'>
								</div>
							</td>
						</tr>
					</table>
				 
					<input name="uid"  id="trainyyzzuid" value="0" type="hidden">
				</form>
			</div>
		</div>
        <div class="infoboxp">
        	
        	
        	<div class="tabs_info">
                <ul>
                    <li class="curr">
                        <a href="index.php?m=train_member">全部培训</a>
                    </li>
                    <li>
                        <a href="index.php?m=user_member&c=writtenOffLog&utype=4">解绑记录</a>
                    </li>
                    <li>
                        <a href="index.php?m=train_member&c=member_log">会员日志</a>
                    </li>
                    
                </ul>
            </div>
            
        	
            <div class="admin_new_tip">
                <a href="javascript:;" class="admin_new_tip_close"></a>
                <a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
                <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
                <div class="admin_new_tip_list_cont">
                    <div class="admin_new_tip_list">该页面展示了网站所有的培训会员信息，可对培训会员进行审核删除操作。</div>
                    <div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>
                     <div class="admin_new_tip_list">锁定培训会员，请到会员列表进行所定</div>
                    <div class="admin_new_tip_list">当账户为已锁定状态,会员状态显示为已锁定</div>
                    <div class="admin_new_tip_list">当前培训不是已审核状态，涉及到相关数据无法进行审核操作。</div>
                </div>
            </div>
            <div class="clear"></div>

            <div class="admin_new_search_box">
                <form action="index.php" name="myform" method="get">
                    <input name="m" value="train_member" type="hidden" />
                    <div class="admin_new_search_name">搜索类型：</div>
                    <div class="admin_Filter_text formselect" did='dtype'>
                        <input type="button" value="{yun:}if $smarty.get.type=='1'||$smarty.get.type==''{/yun}用户名 {yun:}elseif $smarty.get.type=='2'{/yun}机构名称{yun:}elseif $smarty.get.type=='3'{/yun}EMAIL{yun:}elseif $smarty.get.type=='4'{/yun}手机号{yun:}/if{/yun}" class="admin_Filter_but" id="btype">
                        <input type="hidden" name="type" id="type" value="{yun:}if $smarty.get.type{/yun}{yun:}$smarty.get.type{/yun}{yun:}else{/yun}1{yun:}/if{/yun}" />
                        <div class="admin_Filter_text_box" style="display:none" id='dtype'>
                            <ul>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('1','type','用户名')">用户名</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('2','type','机构名称')">机构名称</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('3','type','EMAIL')">EMAIL</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('4','type','手机号')">手机号</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <input type="text" placeholder="输入你要搜索的关键字" value="{yun:}$smarty.get.keyword{/yun}" name='keyword' class="admin_Filter_search">
                    <input type="submit" name='search' value="搜索" class="admin_Filter_bth">
                    <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();" class="admin_new_search_gj">高级搜索</a>
                </form>
                {yun:}include file="admin/admin_search.htm"{/yun} </div>
            <div class="clear"></div>

			<div class="admin_statistics">
            数据统计：
				<em class="admin_statistics_s">总数：<span class="ajaxuserall">0</span></em>
				<em class="admin_statistics_s">未审核：<span class="pxStatusNum1">0</span></em>
				<em class="admin_statistics_s">未通过：<span class="pxStatusNum2">0</span></em>
				<em class="admin_statistics_s">已锁定：<span class="pxStatusNum3">0</span></em>
				搜索结果：<span>{yun:}$total{/yun}</span>；
			</div>

            <div class="table-list">
                <div class="admin_table_border">
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form action="index.php" name="myform" method="get" id='myform' target="supportiframe">
                        <input name="m" value="train_member" type="hidden" />
                        <input name="c" value="del" type="hidden" />
                        <table width="100%">
                            <thead>
                                <tr class="admin_table_top">
                                    <th><label for="chkall">
											<input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/>
										</label>
									</th>
                                    <th>{yun:}if $smarty.get.t=="uid" && $smarty.get.order=="asc"{/yun}
                                        <a href="{yun:}searchurl order=desc t=uid m=train_member untype='order,t'{/yun}">编号<img src="images/sanj.jpg" /></a>{yun:}else{/yun}
                                        <a href="{yun:}searchurl order=asc t=uid m=train_member untype='order,t'{/yun}">编号<img src="images/sanj2.jpg" /></a> {yun:}/if{/yun}</th>
                                    <th align="left">用户名/机构名称</th>

                                    <th>企业认证</th>
                                    <th align="left">手机号/EMAIL</th>
                                    <th>登录/注册</th>
                                    <th>站点</th>

                                    <th>状态</th>
                                    <th>推荐</th>
									<th class="admin_table_th_bg" width="200">操作</th>
                                </tr>
                            </thead>
                            <tbody>

                                {yun:}foreach item=v key=key from=$userrows{/yun}
                                <tr align="center" {yun:}if ($key+1)%2=='0' {/yun}class="admin_com_td_bg" {yun:}/if{/yun} id="list{yun:}$v.uid{/yun}">
                                    <td><input type="checkbox" value="{yun:}$v.uid{/yun}" class="check_all" name='del[]' onclick='unselectall()' rel="del_chk" email="{yun:}$v.email{/yun}" moblie="{yun:}$v.moblie{/yun}" /></td>
                                    <td class="ud" style="text-align:center;">
                                        {yun:}$v.uid{/yun}
                                    </td>
                                    <td class="ud" align="left">
                                        <a href="javascript:void(0)" onclick="toMember('index.php?m=train_member&c=Imitate&uid={yun:}$v.uid{/yun}','{yun:}$v.usertype{/yun}')" class="admin_cz_sc">{yun:}$v.username{/yun}</a>
                                        {yun:}if $v.status==2{/yun}<img src="../config/ajax_img/suo.png" alt="已锁定" title="已锁定">{yun:}/if{/yun}
                                        <div class="mt8">{yun:}$v.train_name{/yun}</div>
                                    </td>
                                    <td>
                                        {yun:}if $v.email_status==1{/yun}
                                        <img src="../config/ajax_img/1-1.png" title="邮箱已认证"  data-status="{yun:}$v.email_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-email="{yun:}$v.email{/yun}"  width="20" height="20" class="train_email"> 
                                        {yun:}else{/yun}
                                        <img src="../config/ajax_img/1-2.png" title="邮箱未认证"  data-status="{yun:}$v.email_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-email="{yun:}$v.email{/yun}"  width="20" height="20" class="train_email">
                                         {yun:}/if{/yun}
                                          {yun:}if $v.moblie_status==1{/yun}
                                        <img src="../config/ajax_img/2-1.png" title="手机已认证" data-status="{yun:}$v.moblie_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-moblie="{yun:}$v.moblie{/yun}" width="20" height="20" class="train_moblie"> 
                                        {yun:}else{/yun}
                                        <img src="../config/ajax_img/2-2.png" title="手机未认证" data-status="{yun:}$v.moblie_status{/yun}"  data-url="{yun:}$v.uid{/yun}"  data-moblie="{yun:}$v.moblie{/yun}" width="20" height="20" class="train_moblie">
                                         {yun:}/if{/yun}
                                          {yun:}if $v.yyzz_status==1{/yun}
                                        <img src="../config/ajax_img/3-1.png" title="营业执照已认证" data-url="{yun:}$v.check{/yun}"  data-uid="{yun:}$v.uid{/yun}" data-status="{yun:}$v.yyzz_status{/yun}" width="20" height="20" class="train_check">
                                         {yun:}else{/yun}
                                        <img src="../config/ajax_img/3-2.png" title="营业执照未认证" data-url="{yun:}$v.check{/yun}"  data-uid="{yun:}$v.uid{/yun}" data-status="{yun:}$v.yyzz_status{/yun}" width="20" height="20" class="train_check">
                                         {yun:}/if{/yun}
                                    </td>
                                     <td class="ud" align="left">
                                       
                                        <div>
                                            <div class="">
												<span class="admin_new_sj">{yun:}if $v.moblie{/yun}{yun:}$v.moblie{/yun}{yun:}/if{/yun}</span>
                                            </div>
                                            <div class="mt8">
                                                <span class="admin_new_yx">
												{yun:}if $v.email{/yun}
													{yun:}$v.email{/yun}
												{yun:}if $email_promiss{/yun}
													<span onClick="send_email('{yun:}$v.email{/yun}');" style="color:green; cursor:pointer;">发邮件</span>{yun:}/if{/yun} 
												{yun:}/if{/yun}
												</span>
                                            </div>
                                        </div>
                                    </td>
                                    <td>

                                        {yun:}if $v.login_date!=""{/yun}{yun:}$v.login_date|date_format:"%Y-%m-%d"{/yun} {yun:}else{/yun}

                                        <font color="#FF0000">从未登录</font>{yun:}/if{/yun}

                                        <div class="mt8">{yun:}$v.reg_date|date_format:"%Y-%m-%d"{/yun}</div>

                                    </td>
                                    <td>
                                        <div>{yun:}$Dname[$v.did]{/yun}</div>
                                        <div>
                                            <a href="javascript:;" onclick="checksite('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}','index.php?m=train_member&c=checksitedid');" class="admin_company_xg_icon">分配</a>
                                        </div>
                                    </td>

                                    <td>{yun:}if $v.r_status==1{/yun}<span class="admin_com_Audited">已审核</span>{yun:}elseif $v.r_status==0{/yun}<span class="admin_com_noAudited">未审核</span>{yun:}elseif $v.r_status==3{/yun}<span class="admin_com_tg">未通过</span>{yun:}else{/yun}<span class="admin_com_Lock">已锁定</span>{yun:}/if{/yun}</td>
                                    <td id="rec{yun:}$v.uid{/yun}">{yun:}if $v.rec=="1"{/yun}
                                        <a href="javascript:void(0);" onClick="rec_up('index.php?m=train_member&c=rec','{yun:}$v.uid{/yun}','0','rec');"><img src="../config/ajax_img/doneico.gif"></a>{yun:}else{/yun}
                                        <a href="javascript:void(0);" onClick="rec_up('index.php?m=train_member&c=rec','{yun:}$v.uid{/yun}','1','rec');"><img src="../config/ajax_img/errorico.gif"></a>{yun:}/if{/yun} 
									</td>
                                    
                                    <td>
										<a href="javascript:void(0);" class="user_status admin_new_c_bth admin_new_c_bthsh" pid="{yun:}$v.uid{/yun}" status="{yun:}$v.r_status{/yun}">审核</a>
										<a href="javascript:void(0);" onClick="resetpw('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_mmcz ">密码</a>
										<a href="index.php?m=train_member&c=edit&id={yun:}$v.uid{/yun}" class="admin_new_c_bth mt5">修改</a>
										<a href="index.php?m=train_member&c=member_log&uid={yun:}$v.uid{/yun}" class="admin_new_c_bth admin_new_c_rz mt5">日志</a>
                                        <a href="javascript:void(0);" onClick="layer_del('确定要删除？','index.php?m=train_member&c=del&del={yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc mt5">删除</a>
                                        
                                    </td>
                                </tr>
                                {yun:}/foreach{/yun}
                                <tr>
                                    <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
                                    <td colspan="14"><label for="chkAll2">全选</label> &nbsp;
                                        <input class="admin_button" type="button" name="delsub" value="删除所选" onclick="return really('del[]')" />
                                        <input class="admin_button" type="button" name="delsub" value="批量审核" onClick="audall();" />
                                        <input class="admin_button" type="button" name="delsub" value="批量选择分站" onClick="checksiteall('index.php?m=train_member&c=checksitedid');" /> {yun:}if $email_promiss{/yun}
                                        <input class="admin_button" type="button" value="发邮件" onclick="return confirm_email('确定发邮件吗？','email_div')" /> {yun:}/if{/yun} {yun:}if $moblie_promiss{/yun}
                                        <input class="admin_button" type="button" value="发信息" onclick="return confirm_email('确定发信息吗？','moblie_div')" /> {yun:}/if{/yun} 
                                        <input class="admin_button" type="button" name="delsub" value="批量认证" onclick="return batch('del[]')" />
                                    </td>    
                                </tr>
								{yun:}if $total > $config.sy_listnum {/yun}
									<tr>
										{yun:}if $pagenum==1{/yun}
											<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum == $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}/if{/yun}
										<td colspan="11" class="digg">{yun:}$pagenav{/yun}</td>
									</tr>
								{yun:}/if{/yun}
								
                            </tbody>

                        </table>
                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                    </form>
                </div>
            </div>
        </div>
        {yun:}include file="$adminstyle/checkdomain.htm"{/yun}
        <script type="text/javascript">
            layui.use(['layer', 'form'], function() {
                var layer = layui.layer,
                    form = layui.form,
                    $ = layui.$;
            });
			
			$(document).ready(function(){
				$(".user_status").click(function() {
                    var uid = $(this).attr("pid");
                    var status = $(this).attr("status");
                    if(status==2){
                      parent.layer.msg('当前用户为已锁定状态，无法进行审核操作', 2, 8);
                      return false;
                    }
                    $("#status" + status).attr("checked", true);
                    layui.use(['form'], function() {
                        var form = layui.form;
                        form.render();
                    });
                    var pytoken = $("#pytoken").val();
                    $("input[name=uid]").val(uid);
                    var pytoken = $("#pytoken").val();
                    $.post("index.php?m=train_member&c=lockinfo", {
                        pytoken: pytoken,
                        uid: uid
                    }, function(msg) {
                        $("#statusbody").val(msg);
                        $.layer({
                            type: 1,
                            title: '培训用户审核',
                            closeBtn: [0, true],
                            border: [10, 0.3, '#000', true],
                            area: ['390px', '260px'],
                            page: {
                                dom: "#infobox2"
                            }
                        });
                    });

                });
				$.get("index.php?m=train_member&c=pxNum", function(data) {
					var datas = eval('(' + data + ')');
					if(datas.pxAllNum) {
						$('.ajaxuserall').html(datas.pxAllNum);
					}
					if(datas.pxStatusNum1) {
						$('.pxStatusNum1').html(datas.pxStatusNum1);
					}
					if(datas.pxStatusNum2) {
						$('.pxStatusNum2').html(datas.pxStatusNum2);
					}
					if(datas.pxStatusNum3) {
						$('.pxStatusNum3').html(datas.pxStatusNum3);
					}
				});
            });
            
               /*邮件认证*/
               $(".train_email").click(function(data){
                var status = $(this).attr("data-status");
                var uid    = $(this).attr("data-url");
                var email  = $(this).attr("data-email");
                $('#trainemailemail').val(email);
                 $('#trainemailuid').val(uid);
                $("#trainestatus" + status).attr("checked", true);
                layui.use([ 'form' ], function() {
                    var form = layui.form;
                    form.render();
                });
                $.layer({
                    type : 1,
                    title : '邮箱认证',
                    closeBtn : [ 0, true ],
                    offset : [ '80px', '' ],
                    border : [ 10, 0.3, '#000', true ],
                    area : [ '350px', '240px' ],
                    page : {
                        dom : '#trainrenemail'
                    }
                }); 
            })

             /*手机认证*/
             $(".train_moblie").click(function(data){
                var status  = $(this).attr("data-status");
                var uid     = $(this).attr("data-url");
                var moblie  = $(this).attr("data-moblie");
                $('#trainmobliemoblie').val(moblie);
                $('#trainmoblieuid').val(uid);
                $("#trainpstatus" + status).attr("checked", true);
                layui.use([ 'form' ], function() {
                    var form = layui.form;
                    form.render();
                });
                $.layer({
                    type : 1,
                    title : '手机认证',
                    closeBtn : [ 0, true ],
                    offset : [ '80px', '' ],
                    border : [ 10, 0.3, '#000', true ],
                    area : [ '350px', '240px' ],
                    page : {
                        dom : '#trainrenmoblie'
                    }
                }); 
            })

             /*营业执照认证*/
             $(".train_check").click(function(data){
                var trainstatus  = $(this).attr("data-status");
                var traincheck     = $(this).attr("data-url");
                var trainuid  = $(this).attr("data-uid");
                var pytoken=$('#pytoken').val();
                $(".job_box_div").html("<img src='"+traincheck+"' style='width:150px;height:80px' />");
                if(traincheck){
                    $("#preview_url").attr("href",traincheck);
                    $("#zwyyzz").hide();
                    $("#preview_url").show();
                }else{
                    $("#preview_url").hide();
                    $("#zwyyzz").show();
                }
               
                $('#trainyyzzuid').val(trainuid);
                $("#trainstatus" + trainstatus).attr("checked", true);
                layui.use([ 'form' ], function() {
                    var form = layui.form;
                    form.render();
                 });
    
                 $.post("index.php?m=train_member&c=sbody", {pid: trainuid,pytoken: pytoken}, function(msg) {
                    $("#traincontent").val(msg);
				});
                $.layer({
                    type : 1,
                    title : '营业执照认证',
                    closeBtn : [ 0, true ],
                    offset : [ '80px', '' ],
                    border : [ 10, 0.3, '#000', true ],
                    area : [ '350px', 'auto' ],
                    page : {
                        dom : '#preview'
                    }
                });    
            })
			function audall() {
                var codewebarr = "";
                $(".check_all:checked").each(function() { //由于复选框一般选中的是多个,所以可以循环输出
                    if(codewebarr == "") {
                        codewebarr = $(this).val();
                    } else {
                        codewebarr = codewebarr + "," + $(this).val();
                    }
                });
                if(codewebarr == "") {
                    parent.layer.msg('您还未选择任何信息！', 2, 8);
                    return false;
                } else {
                    $("input[name=uid]").val(codewebarr);
                    $("#statusbody").val('');
                    $("input[name='status']").attr('checked', false);
                    layui.use(['form'], function() {
                        var form = layui.form;
                        form.render();
                    });
                    $.layer({
                        type: 1,
                        title: '培训用户审核',
                        closeBtn: [0, true],
                        border: [10, 0.3, '#000', true],
                        area: ['390px', '260px'],
                        page: {
                            dom: "#infobox2"
                        }
                    });
                }
            }
			   //批量认证
			function batch(name){
                var chk_value =[];  
               
                $('input[name="'+name+'"]:checked').each(function(){    
                    chk_value.push($(this).val());   
                });  
            
                if(chk_value.length==0){
                    layer.msg("请选择要批量认证的数据！",2,8);return false;
                }else{

                    $('#btachuid').val(chk_value);
                    $.layer({
                        type : 1,
                        title : '批量认证',
                        closeBtn : [ 0, true ],
                        offset : [ '80px', '' ],
                        border : [ 10, 0.3, '#000', true ],
                        area : [ '350px', '235px' ],
                        page : {
                            dom : '#batchrezhen'
                        }
                    }); 
                }
            }
			function toMember(url, usertype){
				if (usertype !='4'){
					if(usertype == '1'){
						var u = '求职者';
					}else if(usertype == '2'){
						var u = '招聘者';
					}else if (usertype == '3'){
						var u = '猎头用户';
					}
					parent.layer.confirm("该账户当前身份为"+u+"，以培训身份模拟进入可能导致部分功能无法正常使用，是否确认进入？", function() {
						parent.layer.closeAll();
						window.open(url);
					});
				}else{
					window.open(url);
				}
			}
        </script>
    </body>

</html>